package config

/*
定义 http server 相关配置
*/

type System struct {
	// 定义运行模式，public 或者是dev
	RunMode string `json:"run_mode" yaml:"RunMode"`
	// 监听端口
	Port     string `json:"port" yaml:"Port"`
	IsTls    bool `json:"is_tls" yaml:"IsTls"`
	CertFile string `json:"cert_file" yaml:"CertFile"`
	KeyFile  string `json:"key_file" yaml:"KeyFile"`

	UseMultipoint bool   `mapstructure:"use-multipoint" json:"useMultipoint" yaml:"use-multipoint"`
}

/*
定义静态文件地址
*/

type Local struct {
	Path string `mapstructure:"path" json:"path" yaml:"path" `
}

//定义JWT 签名字符串
type JWT struct {
	SigningKey string `mapstructure:"signing-key" json:"signingKey" yaml:"signing-key"`
}

type Casbin struct {
	ModelPath string `mapstructure:"model-path" json:"modelPath" yaml:"model-path"`
}
